package com.mtao.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.groups.Default;
import lombok.*;

import java.time.LocalDateTime;
import java.util.ArrayList;

@Data
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class SysRole {
    private Integer id;
    @NotEmpty
    private String roleName;
    @NotEmpty
    private String roleCode;
    private String description;
    private ArrayList menuIds;//菜单id
    @JsonFormat(pattern = "YYYY-MM-DD HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "YYYY-MM-DD HH:mm:ss")
    private LocalDateTime updateTime;


    public interface Add extends Default {

    }
    public interface Update extends Default{

    }
}
